#include "newwgdialog.h"

#include <QtWidgets>



NewWGDialog::NewWGDialog(QWidget *parent ) : QDialog(parent)
{
    setWindowTitle("Input Dialog");

            label = new QLabel("Enter interface name:", this);
            lineEdit = new QLineEdit(this);
            buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);

            QVBoxLayout *layout = new QVBoxLayout(this);
            layout->addWidget(label);
            layout->addWidget(lineEdit);
            layout->addWidget(buttonBox);

            connect(buttonBox, &QDialogButtonBox::accepted,
     this, &NewWGDialog::accept);
            connect(buttonBox, &QDialogButtonBox::rejected, this, &NewWGDialog::reject);
}
